﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmImpresion.aspx.cs" Inherits="Box.Cliente.Ventas.frmImpresion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 108px;
        }
        .auto-style2 {
            width: 338px;
        }
        .auto-style3 {
            width: 169px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h2>Comprobante de Pago</h2>
            </div>
            <div class="panel-body">
                
					<table>
						<tr>
								                                                                           
							<td class="auto-style1"><asp:TextBox ID="txtId" Visible="False" runat="server" CssClass="form-control input-sm" ReadOnly="True"/></td>
                                    									
						</tr>
						<tr>
							<td class="auto-style1"><label>Cliente:</label></td>
							<td class="auto-style2"><b><asp:Label ID="lblCliente" runat="server" style="font-size: x-large"></asp:Label></b></td>
							<td> </td><td>
                            <td><b><label>RUC/DNI:</label></b></td>
							<td class="auto-style3"><b><asp:Label ID="lblRuc" runat="server" style="font-size: x-large"/></b></td>
                            <td><label>Num:</label></td>                                                                   
                            <td><b><asp:Label runat="server"  ID="lblCorrelativo" style="font-size: x-large"></asp:Label></b></td>
                                    									
						</tr>
						<tr>								    
							<td class="auto-style1"><label>Dirección:</label></td>
							<td class="auto-style2"><b><asp:Label ID="lblDireccion"  runat="server" style="font-size: x-large"/></b></td>
							<td> </td><td> </td>
                            
                            <td><label>Fecha:</label></td>
							<td class="auto-style3">
								<b><asp:Label runat="server" ID="lblFecha" style="font-size: large"></asp:Label></b>
							</td> 
                            <td><b><asp:Label runat="server" id="_lblIgv" style="font-size: large">IGV</asp:Label></b></td>
                            <td><b><asp:Label runat="server" ID="lblIgv" style="font-size: x-large"></asp:Label></b></td>
						</tr>
					</table>
                <br />
                <br />
					<legend>Detalle Venta</legend>
					 							
					<asp:UpdatePanel runat="server" ID="upDetalle">
						<ContentTemplate>
							<asp:ListView ID="lvDetalleVenta" runat="server">
								<EmptyDataTemplate>
									<table class="table table-bordered table-striped table-hover table-condensed">
										<thead>
											<tr>
												<th>Item</th>
												<th>Descripción</th>
												<th>Cantidad</th>
												<th>Precio</th>
												<th>Monto</th>
												<%--<th>Acciones</th>--%>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td colspan="6">
													<h3>No tiene productos agregados a su detalle..!!</h3>
												</td>
											</tr>
										</tbody>
										<tfoot>
											<tr>
												<td></td>
												<td></td>
												<td></td>
												<td></td>
												<td></td>
												<td></td>
											</tr>
										</tfoot>
									</table>
								</EmptyDataTemplate>
								<LayoutTemplate>
									<table class="table table-bordered table-striped table-hover table-condensed">
										<thead>
											<tr>
												<th style="width: 20px;">Item</th>
												<th>Descripción</th>
												<th>Cantidad</th>
												<th>Precio</th>
												<th>Monto</th>
												<%--<th>Acciones</th>--%>
											</tr>
										</thead>
										<tbody>
											<tr id="itemPlaceholder" runat="server"/>
										</tbody>
										<tfoot>
											<tr>
												<%--<td>
													<asp:Button runat="server"
														ID="btnActualizarDetalle"
														Text="Actualizar Detalle"
														CommandName="ActualizarDetalle" />
												</td>--%>
												<td></td>
												<td></td>
												<td><h3>Total:</h3></td>
												<td><h3><asp:Label ID="lblTotal" runat="server"></asp:Label></h3></td>
                                                <td></td>														
											</tr>
										</tfoot>
									</table>
								</LayoutTemplate>                                
								<ItemTemplate>
									<tr>
										<td><%# Eval("Producto.Id") %></td>
										<td><%# Eval("Producto.NombreProducto") %></td>
										<td><%# Eval("Cantidad") %></td>
										<td><%# Eval("PrecioUnit") %></td>
										<td><%# Eval("Monto") %></td>
										<%--<td>
											<asp:Button ID="Button1" runat="server" Text="Quitar"
												CssClass="btn btn-danger btn-sm"
												CommandName="QuitarDetalle"
												CommandArgument='<%# Eval("IdProducto") %>'/>
										</td>--%>
									</tr>
								</ItemTemplate>
							</asp:ListView>
						</ContentTemplate>
						<Triggers>
							<asp:AsyncPostBackTrigger ControlID="lvDetalleVenta" EventName="ItemCommand"/>																		
						</Triggers>
					</asp:UpdatePanel>
                    <strong>S</strong><em><strong>on:</strong></em> <strong>
                <asp:Label runat="server" ID="lblCantidadTotal" style="font-style: italic"></asp:Label>
                    </strong><em><strong>nuevos soles.</strong></em></div>
            <div class="panel-footer">
                <asp:Button runat="server" ID="btnImprimir" CssClass="btn btn-warning" Text="Imprimir"/>
            </div>
        </div>
    </div>
</asp:Content>
